package com.yuandengta.yomall.search.service;

import com.yuandengta.common.to.es.SkuEsModel;
import com.yuandengta.common.utils.R;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.List;

public interface ProductService {
    /**
     * 商品上架
     *
     * @param skuEsModelList
     */
    boolean productUp(List<SkuEsModel> skuEsModelList) throws IOException;

    /**
     * 商品下架
     *
     * @param skuEsModelList
     */
    boolean productDown(List<SkuEsModel> skuEsModelList) throws IOException;

    /**
     * 简单的搜索功能
     */
    R search(String keyword, Integer pageNum, Integer pageSize) throws IOException;

    /**
     * 综合搜索、筛选、排序
     */
    R search(String keyword,
             Long brandId,
             Long productCategoryId,
             Integer pageNum,
             Integer pageSize,
             Integer sort);
}
